﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Domain.审计字段;

namespace PersonnelSystemManagement.人事管理
{
    /// <summary>
    /// 离职信息表
    /// </summary>
    public class Resign : AuditableEntityBase
    {
        /// <summary>
        /// 主键 ID
        /// </summary>
        [Key]
        public int id { get; set; }

        /// <summary>
        /// 入职日期
        /// </summary>
        public DateTime? DateOfEmployment { get; set; }

        /// <summary>
        /// 最后工作日
        /// </summary>
        public DateTime? LastWorkingDay { get; set; }

        /// <summary>
        /// 离职原因，长度不超过 500 字符
        /// </summary>
        [StringLength(500, ErrorMessage = "离职原因长度不能超过 500 个字符")]
        public string? ResignationNotes { get; set; }
    }
}
